export default class popupsManager {
  static _manager = null;
  popupsComp = null;

  constructor() {
    popupsManager._manager = this;
  }

  static init(comp) {
    popupsManager._manager.popupsComp = comp;
  }

  static show(posi, name, isTreurn, length) {
    popupsManager._manager.popupsComp.show(posi, name, isTreurn, length);
  }

  static hide() {
    popupsManager._manager.popupsComp.hide();
  }
}
